package org.ethan.pay.domain;

import lombok.Data;
import org.ethan.basic.domain.BaseDomain;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class PayBill extends BaseDomain {
    //支付状态
    //0 待支付
    public static final int SATET_WAIT_PAY = 0 ;
    //1 已支付
    public static final int SATET_SUCCESS_PAY = 1 ;
    //2 未付款交易超时关闭，或支付完成后全额退款。
    public static final int SATET_OUTTIME_OR_RETURN = 2 ;
    //3 取消 : 支付超时自动取消 。 用户手动取消
    public static final int SATET_CANCEL = 3;

    //业务类型：宠物购买
    public static final int BUSINESS_TYPE_PET = 1;
    //业务类型：充值
    public static final int BUSINESS_TYPE_RECHARGE = 2;

    //标题
    private String digest;
    //金额
    private BigDecimal money;
    //状态
    private Integer state;
    //创建时间
    private Date createTime;
    //支付最后修改时间
    private Date lastPayTime;
    //支付方式
    private Integer payChannel;
    //修改时间
    private String updateTime;
    //支付单号
    private String unionPaySn;
    //业务类型
    private Integer businessType;
    //业务关联表的ID
    private Long businessKey;
    private Long user_id;
    private String nickName;
    private String shopName;
    private Long shop_id;
}
